﻿@model Controller2.Models.ViewModels.ClientesViewModel
<style type="text/css">
    #formHide
    {
        margin: 30px auto 50px auto;
        display: block;
        width: 740px;
    }
    .display-label
    {
        width: 170px;
    }
    .display-field input[type=text]
    {
        width: 495px !important;
        border: none;
        font-size: 16px;
        padding-left: 5px;
        margin-left: 5px;
    }
    .display-field input[type=text]#ID
    {
        width: 80px !important;
        border: none;
        font-size: 16px;
        text-align: right;
        padding-right: 10px; 
        padding-left: 0;
        margin-left: 5px;
    }
    .display-field input[type=text]#DataCadastro, .display-field input[type=text]#DataNascimento, .display-field input[type=text]#DataAbertura
    {
        width: 90px !important;
        padding-left: 0;
        text-align: center;
    }
</style>
@if (false)
{
    <script src="../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-ui.js" type="text/javascript"></script>
    <script src="../../Scripts/controller.js" type="text/javascript"></script>
}
<div id="formHide">
    <fieldset>
        <legend>Cliente</legend>
        <div class="display-label">
            Código:
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.ID)
        </div>
        <div class="display-label">
            Data de Cadastro:
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.DataCadastro)
        </div>
        @if (!string.IsNullOrWhiteSpace(Model.DataNascimento))
        {
            <div class="display-label">
                Data de Nascimento:
            </div>
            <div class="display-field">
                @Html.DisplayFor(model => model.DataNascimento)
            </div>
        }
        @if (!string.IsNullOrWhiteSpace(Model.DataAbertura))
        {
            
            <div class="display-label">
                Data de Abertura:
            </div>
            <div class="display-field">
                @Html.DisplayFor(model => model.DataAbertura)
            </div>
        }
        <div class="display-label">
            Nome:
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Nome)
        </div>
        @if (!string.IsNullOrWhiteSpace(Model.Sexo))
        {        
            <div class="display-label">
                Sexo:
            </div>
            <div class="display-field">
                @Html.DisplayFor(model => model.Sexo)
            </div>
        }
        @if (!string.IsNullOrWhiteSpace(Model.RG))
        {        
            <div class="display-label">
                RG:
            </div>
            <div class="display-field">
                @Html.DisplayFor(model => model.RG)
            </div>
        }
        @if (!string.IsNullOrWhiteSpace(Model.CPF))
        {        
            <div class="display-label">
                CPF:
            </div>
            <div class="display-field">
                @Html.DisplayFor(model => model.CPF)
            </div>
        }
        @if (!string.IsNullOrWhiteSpace(Model.CNPJ))
        {        
            <div class="display-label">
                CNPJ:
            </div>
            <div class="display-field">
                @Html.DisplayFor(model => model.CNPJ)
            </div>
        }
        @if (!string.IsNullOrWhiteSpace(Model.InscricaoEstadual))
        {        
            <div class="display-label">
                Inscrição Estadual:
            </div>
            <div class="display-field">
                @Html.DisplayFor(model => model.InscricaoEstadual)
            </div>
        }
        <div class="display-label">
            Endereco:
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Endereco)
        </div>
        <div class="display-label">
            CEP:
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.CEP)
        </div>
        <div class="display-label">
            Complemento:
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Complemento)
        </div>
        <div class="display-label">
            Cidade:
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Cidade)
        </div>
        <div class="display-label">
            Fone:
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Fone)
        </div>
        @if (!string.IsNullOrWhiteSpace(Model.Celular))
        {        
            <div class="display-label">
                Celular:
            </div>
            <div class="display-field">
                @Html.DisplayFor(model => model.Celular)
            </div>
        }
        @if (!string.IsNullOrWhiteSpace(Model.Fax))
        {        
            <div class="display-label">
                Fax:
            </div>
            <div class="display-field">
                @Html.DisplayFor(model => model.Fax)
            </div>
        }
        @if (!string.IsNullOrWhiteSpace(Model.Contato))
        {        
            <div class="display-label">
                Contato:
            </div>
            <div class="display-field">
                @Html.DisplayFor(model => model.Contato)
            </div>
        }
        @if (Model.RamalContato != null)
        {        
            <div class="display-label">
                Ramal do Contato:
            </div>
            <div class="display-field">
                @Html.DisplayFor(model => model.RamalContato)
            </div>
        }
        <div class="display-label">
            Site:
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Site)
        </div>
        <div class="display-label">
            Email:
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Email)
        </div>
        @if (!string.IsNullOrWhiteSpace(Model.EmailContato))
        {        
            <div class="display-label">
                Email do Contato:
            </div>
            <div class="display-field">
                @Html.DisplayFor(model => model.EmailContato)
            </div>
        }
        <div class="display-label">
            Twitter:
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Twitter)
        </div>
        <div class="display-label">
            UserName:
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Username)
        </div>
    </fieldset>
    <div id="botoesForm">
        <input type="button" id="Alterar" value="Alterar Senha" />
        <input type="button" id="Fechar" value="Início" />
    </div>
</div>
<script type="text/javascript">
    $('#Fechar').click(function () {
        window.location.href = '@Url.Action("Index", "Home")';
    });
    $('#Alterar').click(function () {
        window.location.href = '@Url.Action("AlterarSenha", "Account")';
    });
</script>
